package cn.kgc.service.impl;

import cn.kgc.entity.ResumeExpect;
import cn.kgc.mapper.ResumeExpectMapper;
import cn.kgc.service.ResumeExpectService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service("resumeExpectService")
@SuppressWarnings("all")
public class ResumeExpectServiceImpl extends ServiceImpl<ResumeExpectMapper, ResumeExpect> implements ResumeExpectService {

    @Override
    public List<ResumeExpect> queryResumeExpectByResumeId(String resumeId, String userId) {
        return baseMapper.selectList(
                new LambdaQueryWrapper<ResumeExpect>()
                        .eq(ResumeExpect::getResumeId, resumeId)
                        .eq(ResumeExpect::getUserId, userId)
        );
    }
}
